<?php
namespace Game\Model;
use Think\Model;
/**
 * du 2025.2.7
 * 羁绊数据模型
 */

class GameIdolModel extends Model{
    public function _get_idol_list(){
        $where = [
            'status' => 1,
            'is_delete' => 0
        ];
        $list = $this->where($where)->select();
        return $list;
    }

    public function _get_idol_detail($idol_id){
        if(!$idol_id){
            return false;
        }
        $where = [
            'id' => $idol_id,
            'status' => 1,
            'is_del' => 0
        ];
        $idol = $this->where($where)->find();
        return $idol;
    }
}